/** 缓存key */
const TokenKey = 'Verulia-Token';

// ---- 使用uni缓存
/**
 * 获取本地缓存token
 */
export const getToken = () => uni.getStorageSync(TokenKey);
/**
 * 本地缓存token
 * @param access_token
 */
export const setToken = (access_token: string) => (uni.setStorageSync(TokenKey, access_token));
/**
 * 删除本地缓存token
 */
export const removeToken = () => (uni.removeStorageSync(TokenKey));
